#!/usr/bin/python
from core.Controller import Controller
from core import Path
import gtk
import os
import gobject
import sys

if os.name == 'nt':
    windows = True
    log_file = os.path.join(Path.WORKING_PATH,'errors.log')
    sys.stderr = open(log_file,'w')
else:
    windows = False

if not windows:            
    controller = Controller()
    gtk.gdk.threads_init()
    gtk.main()
if windows:
    gobject.threads_init() 
    controller = Controller() 
    gtk.main()
